package com.cloudcc.mobile.dao.impl;

import java.net.URLEncoder;

import com.cloudcc.mobile.AppContext;
import com.cloudcc.mobile.dao.ShuXinDao;
import com.cloudcc.mobile.util.NetWork;
import com.cloudcc.mobile.util.Tools;
import com.cloudcc.mobile.util.UrlTools;

public class ShuXinDaoImpl implements ShuXinDao {

	@Override
	public String shuaxin(String data) {
		String jsonstring = null;
		try {
			String Data = URLEncoder.encode(data, "utf-8");
			String url = UrlTools.url + UrlTools.url_path
					+ "serviceName=getChatters01&data=" + Data + "&binding="
					+ AppContext.binding;
			jsonstring = NetWork.get(url.trim());
		} catch (Exception e) {
			Tools.handle(e);
		}
		return jsonstring;
	}

}
